#include "ros/ros.h" //set ros include
#include "std_msgs/String.h"
#include <ecal/ecal.h>

#include "showApiChassis.h"
#include "showApiGnss.h"
#include "showApiBulidMap.h"

int main(int argc, char *argv[]) // main funtion
{
    ros::init (argc, argv, "showpath");

    eCAL::Initialize(argc, argv, "driver Publisher");
    eCAL::Util::EnableLoopback(true); // 启用 eCAL 消息环回，这意味着订阅者将从同一进程的发布者接收消息（默认值 == false）

    
    c_showApiChassis showApiChassis;
    showApiChassis.start_thread();
    c_showApiGnss showApiGnss;
    showApiGnss.start_thread();
    c_showApiBulidMap showApiBulidMap;
    showApiBulidMap.start_thread();

    while (ros::ok())
    {
        sleep(1);
    }
    return 0;
}
    